
<%

if(request.getSession().getAttribute("GID")==null){

%>
<table bgcolor="#6699CC" cellpadding="0" cellspacing="0" border="0" width="100%">
<tr><td>
    <table bgcolor="#6699CC" cellpadding="3" cellspacing="1" border="0" width="100%">
    <tr bgcolor="#6699CC">
        <td nowrap>
   			<div align="center"><font color="#FFFFFF"><b>
			Input Area 
			</b></font></div>
        </td>
    </tr>

    <tr bgcolor="#FFFFFF">
        <form name="form1" method=post action="LoginServlet" onSubmit="return checkRequired(this)">
          <td>
                    <table>
                    <tr>
                            <td align='right'>GID :</td>
                            <td>
                                    <input type=text name='requiredGID' value='' size=13 onmouseover="return overlib('Enter your Seagate GID', CAPTION, 'Help', FGCOLOR, '#CCFFFF')" onmouseout="return nd();">
                            </td>

                    </tr>
                    <tr>
                            <td>Password :</td>
                            <td><input type=password name='requiredPassword' size=14 onmouseover="return overlib('Enter your password, as defined in my.seagate.com', CAPTION, 'Help', FGCOLOR, '#CCFFFF')" onmouseout="return nd();"></td>
                    </tr>
                    </table>
                   <%
                    target = request.getParameter("target");
                    if(target == null) {%>
			<input type="hidden" name="target" value="home.jsp">
		    <%} else {%>
			<input type="hidden" name="target" value="<%=target%>">
		   <%}%>


                    &nbsp;<input type="image" name="imgSubmit" id="imgSubmit" src="./images/buttons/btn_submit.gif" border="0"/>

          </td>
            </form>

    </tr>
</table>
</td></tr>
</table>

 <% } %>


<!-- Report link -->
<br>
<%
if(request.getSession().getAttribute("GID")!=null){

%>
<table cellpadding="0" cellspacing="0" border="0" width="100%">
    <tr bgcolor="#99CC66">
        <td width="100%">
            <font size="-1"
             color="#FFFFFF"
             face="verdana,arial,sans-serif">
            <b>&nbsp;:: Report&nbsp;</b>
            </font>
        </td>
    </tr>
    <tr bgcolor="#FFFFFF">
        <td width="100%">
            <font size="-2" face="verdana,arial,sans-serif">
			&nbsp;<b>*</b>&nbsp;<a href="<%=request.getContextPath()%>/home.jsp">Home </a>&nbsp;
            </font>
        </td>
    </tr>
   <!-- <tr bgcolor="#FFFFFF">
        <td width="100%">
            <font size="-2" face="verdana,arial,sans-serif">
			&nbsp;<b>*</b>&nbsp;<a href="<%=request.getContextPath() %>/failpartreport.jsp" >Fail Parts Report </a>&nbsp;
            </font>
        </td>
    </tr> -->
 
</table>
 <br>
<!-- end report link -->

<table cellpadding="0" cellspacing="0" border="0" width="100%">
    <tr bgcolor="#003399">
        <td width="100%">
            <font size="-1"
             color="#FFFFFF"
             face="verdana,arial,sans-serif">
            <b>&nbsp;:: Management&nbsp;</b>
            </font>
        </td>
    </tr>
    <% if(role.equalsIgnoreCase("admin")||role.equalsIgnoreCase("sa")){%>
     <tr bgcolor="#FFFFFF">
        <td width="100%">
            <font size="-2" face="verdana,arial,sans-serif">
			&nbsp;<b>*</b>&nbsp;<a href="<%=request.getContextPath()%>/rejectpart.jsp">Reject Parts </a>&nbsp;
            </font>
        </td>
    </tr>
    <% if(role.equalsIgnoreCase("sa")){%>
    <tr bgcolor="#FFFFFF">
        <td width="100%">
            <font size="-2" face="verdana,arial,sans-serif">
			&nbsp;<b>*</b>&nbsp;<a href="<%=request.getContextPath()%>/addpart.jsp">Add/Edit Parts </a>&nbsp;
            </font>
        </td>
    </tr>
     <% } %>
    <% } %>

</table>


<!-- configuration link -->

<br>
<table cellpadding="0" cellspacing="0" border="0" width="100%">
    <tr bgcolor="#9933FF">
        <td width="100%">
            <font size="-1"
             color="#FFFFFF"
             face="verdana,arial,sans-serif">
            <b>&nbsp;:: System&nbsp;</b>
            </font>
        </td>
    </tr>
 <% if(role.equalsIgnoreCase("admin")||role.equalsIgnoreCase("sa")){%>


    <tr bgcolor="#FFFFFF">
        <td width="100%">
            <font size="-2" face="verdana,arial,sans-serif">
			&nbsp;<b>*</b>&nbsp;<a href="<%=request.getContextPath()%>/roomsetting.jsp">Room Setting </a>&nbsp;
            </font>
        </td>
    </tr>
 
    <tr bgcolor="#FFFFFF">
        <td width="100%">
            <font size="-2" face="verdana,arial,sans-serif">
			&nbsp;<b>*</b>&nbsp;<a href="<%=request.getContextPath()%>/alertlimit.jsp">Alert Limit Setting </a>&nbsp;
            </font>
        </td>
    </tr>
    
    <tr bgcolor="#FFFFFF">
        <td width="100%">
            <font size="-2" face="verdana,arial,sans-serif">
			&nbsp;<b>*</b>&nbsp;<a href="<%=request.getContextPath()%>/userrole.jsp">User Manager </a>&nbsp;
            </font>
        </td>
    </tr>
        <tr bgcolor="#FFFFFF">
        <td width="100%">
            <font size="-2" face="verdana,arial,sans-serif">
			&nbsp;<b>*</b>&nbsp;<a href="<%=request.getContextPath()%>/maillist.jsp">Alert Mail Setting </a>&nbsp;
            </font>
        </td>
    </tr>
    
    <% } %>
     <tr bgcolor="#FFFFFF">
        <td width="100%">
            <font size="-2" face="verdana,arial,sans-serif">
			&nbsp;<b>*</b>&nbsp;<a href="<%=request.getContextPath()%>/login.jsp?logout=true">Logout</a>&nbsp;
            </font>
        </td>
    </tr>
</table>
<!-- end configuration link -->

<% } %>
<br>

    <script language='JavaScript'>
       document.write(getCalendar(true));
    </script>